<%--@elvariable id="contractorStaff" type="com.weitu.contractor.entity.ContractorStaff"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<!doctype html>
<html lang="zh">
<head>
    <title>承包商信息编辑</title>
    <%@include file="/common/header.jspf" %>
    <script type="text/javascript" src="${ctx}/resources/js/contractor/contractorStaff/edit.js"></script>
</head>
<body>
<div class="menu-right" style="width:80px;">
    <a id="btn_save" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg">保存</a>
</div>
<div class="information">
    <div class="information-title">
        <p>基本信息</p>
        <a class="panel-down" href="javascript:void(0)">
            <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
        </a>
    </div>
    <div class="cuttle">
        <form id="form1" method="POST">
            <div>
                <div class="form_one">
                    <label class="lable-style">工号:</label>
                    <input name="code" type="text" class="easyui-textbox" value="${contractorStaff.code}" data-options="required:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">姓名:</label>
                    <input name="name" type="text" class="easyui-textbox" value="${contractorStaff.name}" data-options="required:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">身份证号:</label>
                    <input name="idcard" type="text" class="easyui-textbox" value="${contractorStaff.idcard}" data-options="required:true,validType:'idcn'" style="width: 240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">出生日期:</label>
                    <input name="birthday" type="text" class="easyui-datebox" value="${contractorStaff.birthday}" data-options="required:true" style="width: 240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">人员类别:</label>
                    <input id="contractorPeopleType" name="contractorPeopleTypeId" value="${contractorStaff.contractorPeopleTypeId}" data-options="required:true" style="width:240px;">
                </div>
                <div class="form_one">
                    <label class="lable-style">所属承包商:</label>
                    <input id="contractorName" name="contractorName" type="text" value="${contractorStaff.contractorName}" style="width:240px;">
                    <input id="contractorId" name="contractorId" type="hidden" value="${contractorStaff.contractorId}" style="width:240px;">
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">手机号码:</label>
                    <input name="mobile" type="text" class="easyui-textbox" value="${contractorStaff.mobile}" data-options="validType:'mobilePhone'" style="width: 240px;"/>
                </div>
                <div class="form_one">
                    <label class="lable-style">性别:</label>
                    <select class="easyui-combobox" name="gender" data-options="required:true" style="width:240px;">
                        <c:if test="${contractorStaff.gender==0}">
                            <option value="1">男</option>
                            <option value="2">女</option>
                            <option selected="selected" value="0">未知</option>
                        </c:if>
                        <c:if test="${contractorStaff.gender==1}">
                            <option selected="selected" value="1">男</option>
                            <option value="2">女</option>
                            <option value="0">未知</option>
                        </c:if>
                        <c:if test="${contractorStaff.gender==2}">
                            <option selected="selected" value="1">男</option>
                            <option value="2">女</option>
                            <option value="0">未知</option>
                        </c:if>
                    </select>
                </div>
                <div class="form_one">
                    <label class="lable-style">状态:</label>
                    <select class="easyui-combobox" name="useState" style="width:240px;">
                        <c:if test="${contractorStaff.useState==0}">
                            <option value="1">启用</option>
                            <option selected="selected" value="0">停用</option>
                        </c:if>
                        <c:if test="${contractorStaff.useState==1}">
                            <option selected="selected" value="1">启用</option>
                            <option value="0">停用</option>
                        </c:if>
                    </select>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_two">
                    <label class="lable-style">备注:</label>
                    <input name="remarks" type="text" value="${contractorStaff.remarks}" class="easyui-textbox" style="width: 600px;"/>
                    <input name="id" type="hidden" class="hide" value="${param.id}">
                    <input name="uploadUserId" type="hidden" class="hide" value="${sessionScope.loginUser.id}">
                </div>
            </div>
        </form>
    </div>
</div>
<div class="information">
    <div class="information-title">
        <p>证书信息</p>
        <a class="panel-down" href="javascript:void(0)">
            <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
        </a>
    </div>
    <div class="enclosure">
        <a id="dg1_btn_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg" style="margin:5px;">添加</a>
        <table id="dg1"></table>
    </div>
</div>
</body>
</html>
